package com.biaobiaoqi.scoreanalysis.service;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

import com.biaobiaoqi.scoreanalysis.exception.DuplicateTeacherException;
import com.biaobiaoqi.scoreanalysis.exception.NoSuchTeacherFoundException;
import com.biaobiaoqi.scoreanalysis.hibernate.bean.Teacher;
import com.biaobiaoqi.scoreanalysis.util.Gender;

public interface ITeacherService {

	public void addTeacher(String loginName, String password, String gender,
			String birthday, String phone, String email) throws DuplicateTeacherException, ParseException;

	public void deleteTeacher(String loginName)
			throws NoSuchTeacherFoundException;

	public void deleteTeacher(int teacherId) throws NoSuchTeacherFoundException;

	public void modifyTeacher(int teacherId, Gender gender, Date birthday,
			String phone) throws NoSuchTeacherFoundException;

	public Teacher findTeacher(String loginName);

	public Teacher findTeacher(int teacherId);

	public List<Teacher> listAllTeacher();

	public List<Teacher> listAllTeacher(int from, int number);

	public boolean isLoginNameAvailable(String loginName);

}
